package com.youi.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 商品信息
 *
 * @author XJY
 */
public class Goods implements Serializable {

    private Long id;                            //ID
    private Date gmtCreated;                    //创建时间
    private Integer delStatus;                    //删除状态（0否 1是）
    private Date gmtModify;                        //最后修改时间
    private Long merchantId;                    //商家id
    private Long goodsTypeId;                    //商品分类id
    private Integer status;                        //状态(0待审核 1出售中 2已售罄 3已下架  4未出售 5已结束)
    private Integer applyStatus;                //审核状态(-1已拒绝 0待审核 1已通过)
    private String name;                        //商品名称
    private String goodsNo;                        //商品编码
    private String internationalNo;                //国际条码
    private String subhead;                        //副标题
    private String shortTitle;                    //短标题
    private String keyword;                        //关键字(多个逗号隔开)
    private Integer type;                        //商品类型(0实体商品 1虚拟服务)
    private Integer presell;                    //预售(0否 1是)
    private String goodsType;                    //商品类别(多个逗号隔开)
    private String attribute;                    //商品属性(多个逗号隔开)
    private String specification;                //规格(多个逗号隔开)
    private Double ecPrice;                        //电商价(根据现价自动增加30%价格)
    private Double slaePrice;                    //商品价格(现价)
    private Double originalPrice;                //商品价格(原价)
    private Double costPrice;                    //商品价格(成本)
    private Integer cheatSaleCnt;                //作弊销售数量
    private Integer cheatStockCnt;                //作弊库存数量
    private Integer realSaleCnt;                //真实销售数量
    private Integer realStockCnt;                //真实库存数量
    private Date gmtStart;                        //开始时间
    private Date gmtEnd;                        //结束时间
    //商品上架时间
    private Date gmtOnSale;
    private String param;                        //产品参数(json数据)
    private String details;                        //商品详情
    private Integer topShow;                    //首页显示(0否 1是)
    private Integer sort;                        //排序
    private String addressUrl;                    //商品链接

    private String merchantName;                //商户名称
    private List<Goodsimgs> goodsimgsList;        //商品图库
    private List<Goodssize> goodssizeList;        //商品规格
    private Integer allStockNum;                //总库存
    private Integer realStockNum;                //实时库存
    private Integer saleNum;                    //已售数量


    public Goods() {

    }

    public Goods(Long id, Date gmtCreated, Integer delStatus, Date gmtModify) {
        this.id = id;
        this.gmtCreated = gmtCreated;
        this.delStatus = delStatus;
        this.gmtModify = gmtModify;
    }


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGmtCreated(Date gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    public Date getGmtCreated() {
        return gmtCreated;
    }

    public void setDelStatus(Integer delStatus) {
        this.delStatus = delStatus;
    }

    public Integer getDelStatus() {
        return delStatus;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setGoodsTypeId(Long goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public Integer getApplyStatus() {
        return applyStatus;
    }

    public void setApplyStatus(Integer applyStatus) {
        this.applyStatus = applyStatus;
    }

    public Long getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setInternationalNo(String internationalNo) {
        this.internationalNo = internationalNo;
    }

    public String getInternationalNo() {
        return internationalNo;
    }

    public void setSubhead(String subhead) {
        this.subhead = subhead;
    }

    public String getSubhead() {
        return subhead;
    }

    public void setShortTitle(String shortTitle) {
        this.shortTitle = shortTitle;
    }

    public String getShortTitle() {
        return shortTitle;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setPresell(Integer presell) {
        this.presell = presell;
    }

    public Integer getPresell() {
        return presell;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setAttribute(String attribute) {
        this.attribute = attribute;
    }

    public String getAttribute() {
        return attribute;
    }

    public void setEcPrice(Double ecPrice) {
        this.ecPrice = ecPrice;
    }

    public Double getEcPrice() {
        return ecPrice;
    }

    public void setSlaePrice(Double slaePrice) {
        this.slaePrice = slaePrice;
    }

    public Double getSlaePrice() {
        return slaePrice;
    }

    public void setOriginalPrice(Double originalPrice) {
        this.originalPrice = originalPrice;
    }

    public Double getOriginalPrice() {
        return originalPrice;
    }

    public void setCostPrice(Double costPrice) {
        this.costPrice = costPrice;
    }

    public Double getCostPrice() {
        return costPrice;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Integer getCheatSaleCnt() {
        return cheatSaleCnt;
    }

    public void setCheatSaleCnt(Integer cheatSaleCnt) {
        this.cheatSaleCnt = cheatSaleCnt;
    }

    public Integer getCheatStockCnt() {
        return cheatStockCnt;
    }

    public void setCheatStockCnt(Integer cheatStockCnt) {
        this.cheatStockCnt = cheatStockCnt;
    }

    public Integer getRealSaleCnt() {
        return realSaleCnt;
    }

    public void setRealSaleCnt(Integer realSaleCnt) {
        this.realSaleCnt = realSaleCnt;
    }

    public Integer getRealStockCnt() {
        return realStockCnt;
    }

    public void setRealStockCnt(Integer realStockCnt) {
        this.realStockCnt = realStockCnt;
    }


    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public Date getGmtStart() {
        return gmtStart;
    }

    public void setGmtStart(Date gmtStart) {
        this.gmtStart = gmtStart;
    }

    public Integer getTopShow() {
        return topShow;
    }

    public void setTopShow(Integer topShow) {
        this.topShow = topShow;
    }

    public Date getGmtEnd() {
        return gmtEnd;
    }

    public void setGmtEnd(Date gmtEnd) {
        this.gmtEnd = gmtEnd;
    }

    public List<Goodsimgs> getGoodsimgsList() {
        return goodsimgsList;
    }

    public void setGoodsimgsList(List<Goodsimgs> goodsimgsList) {
        this.goodsimgsList = goodsimgsList;
    }

    public List<Goodssize> getGoodssizeList() {
        return goodssizeList;
    }

    public void setGoodssizeList(List<Goodssize> goodssizeList) {
        this.goodssizeList = goodssizeList;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public String getAddressUrl() {
        return addressUrl;
    }

    public void setAddressUrl(String addressUrl) {
        this.addressUrl = addressUrl;
    }

    public Integer getAllStockNum() {
        return allStockNum;
    }

    public void setAllStockNum(Integer allStockNum) {
        this.allStockNum = allStockNum;
    }

    public Integer getRealStockNum() {
        return realStockNum;
    }

    public void setRealStockNum(Integer realStockNum) {
        this.realStockNum = realStockNum;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Date getGmtOnSale() {
        return gmtOnSale;
    }

    public void setGmtOnSale(Date gmtOnSale) {
        this.gmtOnSale = gmtOnSale;
    }
}
